예제 #1
0
 public static I ForComponent <I>(ServiceProxyFactory serviceProxyFactory, StatefulService caller, ServicePartitionKey partitionKey = null) where I : class, IService
 {
     if (serviceProxyFactory == null)
     {
         throw new ArgumentNullException(nameof(serviceProxyFactory), "Invalid component call. Must supply service proxy factory.");
     }
     Debug.Assert(caller != null, "Invalid component call. Must supply stateful service caller.");
     return(ForService <I>(serviceProxyFactory, Addressing.Component <I>(caller), partitionKey));
 }
예제 #2
0
 public static I ForComponent<I>(StatelessService caller, ServicePartitionKey partitionKey = null)
     where I : class, IService
 {
     Debug.Assert(caller != null, "Invalid component call. Must supply stateless service caller.");
     return ForService<I>(Addressing.Component<I>(caller), partitionKey);
 }
예제 #3
0
 public static I ForComponent <I>(StatefulService caller, ServicePartitionKey partitionKey = null) where I : class, IService
 {
     Debug.Assert(caller != null, "Invalid component call. Must supply stateful service caller.");
     return(ForService <I>(defaultProxyFactory, Addressing.Component <I>(caller), partitionKey));
 }
예제 #4
0
 public static I ForComponent <I>(StatefulService caller, ServicePartitionKey partitionKey = null) where I : class, IService
 {
     return(Proxy.ForService <I>(_TrackingProxyFactory, Addressing.Component <I>(caller), partitionKey));
 }