Simple DNS Plus - Community Forums Back to JH Software
Welcome Guest Search | Active Topics | Log In | Register

Developing Plugins Options
Menno de Ruiter
#1 Posted : Wednesday, July 21, 2010 2:06:56 AM


Joined: 7/21/2010
Posts: 7
Location: Spain
Hi All,

I would like to start a new topic as developing plugins.

Personally I try making a plugin using:

Visual Studio 2008 SP1 in C#

and the newest SimpleDNS 5.2 Build 117
Menno de Ruiter
#2 Posted : Wednesday, July 21, 2010 2:09:39 AM


Joined: 7/21/2010
Posts: 7
Location: Spain
I can't get the plugin showing in the Plugin List,

I copied the steps in the very nice http://www.simpledns.com/screencast-ip1234-1.aspx screencast.

but something does not work, it might be because the screencast is based upon version 5.0, and I use the 5.2 version which I read does have a different architectual model, namely threading etc.

Anyone succesfull in developing plugins with VS2008SP1 C# and SimpleDNS 5.2 Build 117?

Regards,

Menno
Menno de Ruiter
#3 Posted : Wednesday, July 21, 2010 2:37:49 AM


Joined: 7/21/2010
Posts: 7
Location: Spain
Does anybody knows why this plugin is not shown?

using System;
using System.Collections.Generic;
using System.Text;
using JHSoftware.SimpleDNS.Plugin;

//class ip1234 : IGetHostPlugIn, IGetAnswerPlugIn, IIgnoreRequestPlugIn,
// ISkipPlugIn, ICloneAnswerPlugIn, IPlugInBase, IListsDomainName,
// IListsIPAddress, IQuestions, ISignal, ITSIGUpdateHost, IUpdateHost


namespace ip1234
{
class ip1234 : IGetHostPlugIn
{
public bool SupportsIPv4 { get {return true;} }

public string Name
{
get { return "ipd1234"; }
}


public string Description
{
get { return "ip1234"; }
}

#region IGetHostPlugIn Members


public DNSAskAboutGH GetDNSAskAbout()
{
throw new NotImplementedException();
}

public void Lookup(IDNSRequest req, ref IPAddress resultIP, ref int resultTTL)
{
string ip4 = "1.2.3.4";
resultIP = IPAddressV4.Parse(ip4);
resultTTL = 300;
//throw new NotImplementedException();
}

public void LookupReverse(IDNSRequest req, ref DomainName resultName, ref int resultTTL)
{
throw new NotImplementedException();
}

public void LookupTXT(IDNSRequest req, ref string resultText, ref int resultTTL)
{
throw new NotImplementedException();
}

#endregion

#region IPlugInBase Members

public event IPlugInBase.AsyncErrorEventHandler AsyncError;

public OptionsUI GetOptionsUI(Guid instanceID, string dataPath)
{
throw new NotImplementedException();
}

public IPlugInBase.PlugInTypeInfo GetPlugInTypeInfo()
{
throw new NotImplementedException();
}

public bool InstanceConflict(string config1, string config2, ref string errorMsg)
{
throw new NotImplementedException();
}

public void LoadConfig(string config, Guid instanceID, string dataPath, ref int maxThreads)
{
throw new NotImplementedException();
}

public void LoadState(string state)
{
throw new NotImplementedException();
}

public event IPlugInBase.LogLineEventHandler LogLine;

public event IPlugInBase.SaveConfigEventHandler SaveConfig;

public string SaveState()
{
throw new NotImplementedException();
}

public void StartService()
{
throw new NotImplementedException();
}

public void StopService()
{
throw new NotImplementedException();
}

#endregion
}

}
servers9
#4 Posted : Wednesday, July 21, 2010 8:45:32 AM


Message was deleted by Moderator.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.