コード例 #1
0
        protected override void ProcessRecord()
        {
            IDDNS ddns = new DDNS(Encoding.UTF8);

            lock (synch) {
                ddns.Log.Received -= onMsg;
                ddns.Log.Received += onMsg;

                try {
                    ddns.setNamespace(Dll, Namespace, UseCecil);
                }
                catch (Exception ex) {
                    LSender.Send(this, $"ERROR-NSBin: {ex.Message}");

#if DEBUG
                    LSender.Send(this, $"Dll: {Dll}");
                    LSender.Send(this, $"Namespace: {Namespace}");
#endif
                }

                ddns.Log.Received -= onMsg;
            }
        }
コード例 #2
0
 /// <param name="dll">The DllExport assembly for modifications.</param>
 /// <param name="enc"></param>
 public Rmod(string dll, Encoding enc)
 {
     this.dll = dll;
     ripper   = new Ripper(dll, enc);
     xml      = DDNS.GetMetaXml(dll);
 }