public InternalActivateAsync ( ICodePackageActivationContext context, IServiceProxyFactory proxyFactory ) : Task | ||
context | ICodePackageActivationContext | |
proxyFactory | IServiceProxyFactory | |
return | Task |
private static async Task<CustomerOrderActor> CreateCustomerOrderActor(MockServiceProxyFactory serviceProxyFactory) { try { CustomerOrderActor target = new CustomerOrderActor( new ActorService( context: statefulServiceContext, actorTypeInfo: ActorTypeInformation.Get(typeof(CustomerOrderActor)), stateManagerFactory: (actorBase, stateProvider) => new MockActorStateManager()), new ActorId(Guid.NewGuid())); await target.InternalActivateAsync(codePackageContext, serviceProxyFactory); return target; } catch (Exception e) { throw; } }