private Task <string> RegisterInboundSessionCallbackAsyncHelper( IReliableInboundSessionCallback sessionCallback, CancellationToken cancellationToken) { return(Utility.WrapNativeAsyncInvokeInMTA <string>( (callback) => this.RegisterInboundSessionCallbackAsyncBeginWrapper(sessionCallback, callback), this.RegisterInboundSessionCallbackAsyncEndWrapper, cancellationToken, "ReliableSessionManager.CreateOutboundSession")); }
private NativeCommon.IFabricAsyncOperationContext RegisterInboundSessionCallbackAsyncBeginWrapper( IReliableInboundSessionCallback sessionCallback, NativeCommon.IFabricAsyncOperationCallback callback) { // AppTrace.TraceSource.WriteNoise("ReliableMessaging.NativeReliableMessaging.FabricCreateReliableSession"); var nativeSessionCallback = new NativeReliableInboundSessionCallback(sessionCallback); return(this.nativeSessionManager.BeginRegisterInboundSessionCallback( nativeSessionCallback, callback)); }
/// <summary> /// Register willingness to accept inbound sessions, with permission granted through /// the IReliableInboundSessionCallback parameter supplied /// Temporarily missing the IReliableInboundSessionCallback input parameter /// until KTL async compatible synchronous callback pattern is frigured out /// </summary> /// <returns>the endpoint (FQDN and port) at which the session is listening</returns> public Task <string> RegisterInboundSessionCallbackAsync(IReliableInboundSessionCallback callback, CancellationToken token) { return(this.RegisterInboundSessionCallbackAsyncHelper(callback, token)); }
public NativeReliableInboundSessionCallback(IReliableInboundSessionCallback realCallback) { this.managedCallback = realCallback; }