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)); }
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); }
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)); }
public static I ForComponent <I>(StatefulService caller, ServicePartitionKey partitionKey = null) where I : class, IService { return(Proxy.ForService <I>(_TrackingProxyFactory, Addressing.Component <I>(caller), partitionKey)); }