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