internal Log(int pluginNumber, Log.Callback log)
        {
            if (log == null) throw new ArgumentNullException("log");

            this.pluginNumber = pluginNumber;
            this.log = log;
        }
示例#2
0
        internal Log(int pluginNumber, Log.Callback log)
        {
            if (log == null)
            {
                throw new ArgumentNullException("log");
            }

            this.pluginNumber = pluginNumber;
            this.log          = log;
        }
示例#3
0
 public static Int32 FsInit(Int32 number, Progress.Callback progress, Log.Callback log, Request.Callback request)
 {
     try
     {
         pluginNumber = number;
         Plugin.Init(
             number,
             new Progress(number, progress),
             new Log(number, log),
             new Request(number, Plugin.PluginName, request)
             );
     }
     catch (Exception ex)
     {
         UnhandledError(ex);
     }
     return(0);
 }