Exemple #1
0
 public virtual void RegisterStatelessServiceFactory(IntPtr serviceType, NativeRuntime.IFabricStatelessServiceFactory factory)
 {
     throw new NotImplementedException();
 }
Exemple #2
0
 public virtual NativeCommon.IFabricAsyncOperationContext BeginRegisterStatelessServiceFactory(IntPtr serviceType, NativeRuntime.IFabricStatelessServiceFactory factory, uint timeoutMilliseconds, NativeCommon.IFabricAsyncOperationCallback callback)
 {
     throw new NotImplementedException();
 }
Exemple #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);
        }
Exemple #4
0
 public override void RegisterStatelessServiceFactory(IntPtr serviceType, NativeRuntime.IFabricStatelessServiceFactory factory)
 {
     throw new ApplicationException("some exception");
 }
Exemple #5
0
 public override void RegisterStatelessServiceFactory(IntPtr serviceType, NativeRuntime.IFabricStatelessServiceFactory factory)
 {
     this.ServiceFactoryRegistrations.Add(new RegisterParameters(serviceType, false, factory as ServiceFactoryBroker));
     this.WasLastCallSynchronous = true;
 }