예제 #1
0
 public virtual void RegisterStatelessServiceFactory(IntPtr serviceType, NativeRuntime.IFabricStatelessServiceFactory factory)
 {
     throw new NotImplementedException();
 }
예제 #2
0
 public virtual NativeCommon.IFabricAsyncOperationContext BeginRegisterStatelessServiceFactory(IntPtr serviceType, NativeRuntime.IFabricStatelessServiceFactory factory, uint timeoutMilliseconds, NativeCommon.IFabricAsyncOperationCallback callback)
 {
     throw new NotImplementedException();
 }
예제 #3
0
        public override NativeCommon.IFabricAsyncOperationContext BeginRegisterStatelessServiceFactory(IntPtr serviceType, NativeRuntime.IFabricStatelessServiceFactory factory, uint timeoutMilliseconds, NativeCommon.IFabricAsyncOperationCallback callback)
        {
            this.ServiceFactoryRegistrations.Add(new RegisterParameters(serviceType, false, factory as ServiceFactoryBroker, timeoutMilliseconds));
            this.WasLastCallSynchronous = false;

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

            return(adapter);
        }
예제 #4
0
 public override void RegisterStatelessServiceFactory(IntPtr serviceType, NativeRuntime.IFabricStatelessServiceFactory factory)
 {
     throw new ApplicationException("some exception");
 }
예제 #5
0
 public override void RegisterStatelessServiceFactory(IntPtr serviceType, NativeRuntime.IFabricStatelessServiceFactory factory)
 {
     this.ServiceFactoryRegistrations.Add(new RegisterParameters(serviceType, false, factory as ServiceFactoryBroker));
     this.WasLastCallSynchronous = true;
 }