public CrdtStatefulService(
     ICrdtEntityHandlerFactory factory,
     ServiceDescriptor descriptor,
     AnySupport anySupport) : base(factory, descriptor, anySupport)
 {
     Factory  = factory;
     Streamed = descriptor.Methods.Where(x => x.IsServerStreaming).Select(x => x.Name).ToArray();
 }
Ejemplo n.º 2
0
        public CloudState RegisterCrdtEntity(
            ICrdtEntityHandlerFactory factory,
            ServiceDescriptor descriptor,
            params FileDescriptor[] additionalDescriptors)
        {
            var anySupport = NewAnySupport(additionalDescriptors);

            StatefulServices.Add(
                descriptor.FullName,
                new CrdtStatefulService(
                    factory,
                    descriptor,
                    anySupport));

            return(this);
        }