public IDisposable Proffer(ServiceRpcDescriptor serviceDescriptor, BrokeredServiceFactory factory)
        {
            _serviceFactories.Add(serviceDescriptor, factory);

            return(null);
        }
コード例 #2
0
 /// <inheritdoc/>
 public IDisposable Proffer(ServiceRpcDescriptor serviceDescriptor, BrokeredServiceFactory factory)
 {
     this.profferedServices.Add(serviceDescriptor.Moniker, factory);
     return(new DisposableAction(this, serviceDescriptor.Moniker));
 }