示例#1
0
 internal RequestObject(ProviderBase provider, IHostApi hostApi)
 {
     // construct request object
     _hostApi = hostApi;
     Provider = provider;
 }
示例#2
0
 public SoftwareIdentityRequestObject(ProviderBase provider, IHostApi request, Action <RequestObject> action, string status)
     : base(provider, request, action)
 {
     _status = status;
     InvokeImpl();
 }
 public DictionaryRequestObject(ProviderBase provider, IHostApi request, Action <RequestObject> action)
     : base(provider, request, action)
 {
     InvokeImpl();
 }
 internal EnumerableRequestObject(ProviderBase provider, IHostApi request, Action <RequestObject> action)
     : base(provider, request, action)
 {
     OnCancel += Complete;
     OnAbort  += Complete;
 }
 public ActionRequestObject(ProviderBase provider, IHostApi hostApi, Action <RequestObject> action) : base(provider, hostApi, action)
 {
     InvokeImpl();
 }
示例#6
0
 public FuncRequestObject(ProviderBase provider, IHostApi hostApi, Func <RequestObject, T> function)
     : base(provider, hostApi, null)
 {
     _action = r => { _result = function(r); };
     InvokeImpl();
 }
 public PackageSourceRequestObject(ProviderBase provider, IHostApi request, Action <RequestObject> action)
     : base(provider, request, action)
 {
     InvokeImpl();
 }
 public DynamicOptionRequestObject(ProviderBase provider, IHostApi request, Action <RequestObject> action, OptionCategory category)
     : base(provider, request, action)
 {
     _category = category;
     InvokeImpl();
 }
示例#9
0
 internal EnumerableRequestObject(ProviderBase provider, IHostApi request, Action <RequestObject> action)
     : base(provider, request, action)
 {
     OnCancel += () => { Results.CompleteAdding(); };
     OnAbort  += () => { Results.CompleteAdding(); };
 }