public Task InstallExtension(string name)
 {
     if (extender == null)
     {
         extender = new TestExtension(this, GrainFactory);
         this.Data.SetComponent <ITestExtension>(extender);
     }
     ExtensionProperty = name;
     return(Task.CompletedTask);
 }
 public Task InstallExtension(string name)
 {
     if (extender == null)
     {
         extender = new TestExtension(this, GrainFactory);
         if (!SiloProviderRuntime.Instance.TryAddExtension(extender))
         {
             throw new SystemException("Unable to add new extension");
         }
     }
     ExtensionProperty = name;
     return(TaskDone.Done);
 }
 public Task InstallExtension(string name)
 {
     if (extender == null)
     {
         extender = new TestExtension(this, GrainFactory);
         if (!runtimeClient.TryAddExtension(extender))
         {
             throw new SystemException("Unable to add new extension");
         }
     }
     ExtensionProperty = name;
     return(Task.CompletedTask);
 }
 public override Task OnActivateAsync(CancellationToken cancellationToken)
 {
     ExtensionProperty = "";
     extender          = null;
     return(base.OnActivateAsync(cancellationToken));
 }
 public Task RemoveExtension()
 {
     SiloProviderRuntime.Instance.RemoveExtension(extender);
     extender = null;
     return(TaskDone.Done);
 }
 public override Task OnActivateAsync()
 {
     ExtensionProperty = "";
     extender          = null;
     return(base.OnActivateAsync());
 }
 public Task RemoveExtension()
 {
     runtimeClient.RemoveExtension(extender);
     extender = null;
     return(Task.CompletedTask);
 }
Beispiel #8
0
 public Task RemoveExtension()
 {
     runtimeClient.RemoveExtension(extender);
     extender = null;
     return(TaskDone.Done);
 }