public ExportTaskImplementation(TTask actualTask) { this._ActualTask = actualTask; this.AddServiceFactory <ExportTaskImplementation <TTask>, IDllExportNotifier>((Func <IServiceProvider, IDllExportNotifier>)(sp => (IDllExportNotifier) new ExportTaskImplementation <TTask> .DllExportNotifierWithTask(this._ActualTask))); this._Values = (IInputValues) new InputValuesCore((IServiceProvider)this); this.GetNotifier().Notification += new EventHandler <DllExportNotificationEventArgs>(this.OnDllWrapperNotification); }
public ExportAssemblyInspector(IInputValues inputValues) { if (inputValues == null) { throw new ArgumentNullException("inputValues"); } this.InputValues = inputValues; }
protected IlToolBase(IServiceProvider serviceProvider, IInputValues inputValues) : base(serviceProvider) { if (inputValues == null) { throw new ArgumentNullException("inputValues"); } this.InputValues = inputValues; }
public void AssignFrom(IExportInfo info, IInputValues input) { if (info == null || String.IsNullOrWhiteSpace(input.MetaLib)) { throw new ArgumentNullException("IExportInfo or path to MetaLib cannot be null."); } setDefaultValues(input); setUserValues(info); }
private MethodDefinition getMetaCtor(IInputValues input) { ModuleDefinition module = ModuleDefinition.ReadModule(input.MetaLib); var _class = module.GetTypes() .Where(t => t.FullName == input.DllExportAttributeFullName) .FirstOrDefault(); return(_class? .Methods .Where(c => c.Name == ".ctor") .FirstOrDefault()); }
protected void setDefaultValues(IInputValues input) { if (metaValues == null) { metaValues = getMetaValues(getMetaCtor(input)); } Func <string, object, object> _ = delegate(string key, object def) { return(metaValues.ContainsKey(key) ? metaValues[key] : def); }; CallingConvention = (CallingConvention)_("CallingConvention", CallingConvention.Cdecl); ExportName = (string)_("ExportName", null); }
internal static IExportAssemblyInspector CreateAssemblyInspector(IInputValues inputValues) { return((IExportAssemblyInspector) new ExportAssemblyInspector(inputValues)); }
public IlDasm(IServiceProvider serviceProvider, IInputValues inputValues) : base(serviceProvider, inputValues) { }