Example #1
0
 public virtual void RegisterStatefulServiceFactory(IntPtr serviceType, NativeRuntime.IFabricStatefulServiceFactory factory)
 {
     throw new NotImplementedException();
 }
Example #2
0
        public override NativeCommon.IFabricAsyncOperationContext BeginRegisterStatefulServiceFactory(IntPtr serviceType, NativeRuntime.IFabricStatefulServiceFactory factory, uint timeoutMilliseconds, NativeCommon.IFabricAsyncOperationCallback callback)
        {
            this.ServiceFactoryRegistrations.Add(new RegisterParameters(serviceType, true, factory as ServiceFactoryBroker, timeoutMilliseconds));
            this.WasLastCallSynchronous = false;

            AsyncTaskCallInAdapter adapter = new AsyncTaskCallInAdapter(callback, Task.Factory.StartNew(() => this.AsyncEvent.Wait()), InteropApi.Default);

            return(adapter);
        }
Example #3
0
 public virtual NativeCommon.IFabricAsyncOperationContext BeginRegisterStatefulServiceFactory(IntPtr serviceType, NativeRuntime.IFabricStatefulServiceFactory factory, uint timeoutMilliseconds, NativeCommon.IFabricAsyncOperationCallback callback)
 {
     throw new NotImplementedException();
 }
Example #4
0
 public override void RegisterStatefulServiceFactory(IntPtr serviceType, NativeRuntime.IFabricStatefulServiceFactory factory)
 {
     this.ServiceFactoryRegistrations.Add(new RegisterParameters(serviceType, true, factory as ServiceFactoryBroker));
     this.WasLastCallSynchronous = true;
 }