public Task InstallExtension(T name)
 {
     if (extender == null)
     {
         extender = new GenericTestExtension <T>(this, this.GrainFactory);
         this.Data.SetComponent <IGenericTestExtension <T> >(extender);
     }
     ExtensionProperty = name;
     return(Task.CompletedTask);
 }
 public Task InstallExtension(T name)
 {
     if (extender == null)
     {
         extender = new GenericTestExtension <T>(this);
         if (!SiloProviderRuntime.Instance.TryAddExtension(extender))
         {
             throw new SystemException("Unable to add new extension");
         }
     }
     ExtensionProperty = name;
     return(TaskDone.Done);
 }
 public Task InstallExtension(T name)
 {
     if (extender == null)
     {
         extender = new GenericTestExtension <T>(this, 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 = default(T);
     extender          = null;
     return(base.OnActivateAsync(cancellationToken));
 }
 public Task RemoveExtension()
 {
     SiloProviderRuntime.Instance.RemoveExtension(extender);
     extender = null;
     return(TaskDone.Done);
 }
 public override Task OnActivateAsync()
 {
     ExtensionProperty = default(T);
     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);
 }