コード例 #1
0
        private DispatchRuntime(SharedRuntimeState shared)
        {
            _shared = shared;

            _operations                    = new OperationCollection(this);
            _synchronizationContext        = ThreadBehavior.GetCurrentSynchronizationContext();
            _automaticInputSessionShutdown = true;

            _unhandled = new DispatchOperation(this, "*", MessageHeaders.WildcardAction, MessageHeaders.WildcardAction);
        }
コード例 #2
0
ファイル: DispatchRuntime.cs プロジェクト: HongGit/wcf
        private DispatchRuntime(SharedRuntimeState shared)
        {
            _shared = shared;

            _operations                    = new OperationCollection(this);
            _messageInspectors             = NewBehaviorCollection <IDispatchMessageInspector>();
            _synchronizationContext        = ThreadBehavior.GetCurrentSynchronizationContext();
            _automaticInputSessionShutdown = true;

            _unhandled = new DispatchOperation(this, "*", MessageHeaders.WildcardAction, MessageHeaders.WildcardAction);
            _unhandled.InternalFormatter = MessageOperationFormatter.Instance;
            _unhandled.InternalInvoker   = new UnhandledActionInvoker(this);
        }
コード例 #3
0
 private DispatchRuntime(SharedRuntimeState shared)
 {
     this.shared     = shared;
     this.operations = new OperationCollection(this);
     this.inputSessionShutdownHandlers    = this.NewBehaviorCollection <IInputSessionShutdown>();
     this.messageInspectors               = this.NewBehaviorCollection <IDispatchMessageInspector>();
     this.instanceContextInitializers     = this.NewBehaviorCollection <IInstanceContextInitializer>();
     this.synchronizationContext          = ThreadBehavior.GetCurrentSynchronizationContext();
     this.automaticInputSessionShutdown   = true;
     this.principalPermissionMode         = System.ServiceModel.Description.PrincipalPermissionMode.UseWindowsGroups;
     this.securityAuditLogLocation        = AuditLogLocation.Default;
     this.suppressAuditFailure            = true;
     this.serviceAuthorizationAuditLevel  = AuditLevel.None;
     this.messageAuthenticationAuditLevel = AuditLevel.None;
     this.unhandled = new DispatchOperation(this, "*", "*", "*");
     this.unhandled.InternalFormatter = MessageOperationFormatter.Instance;
     this.unhandled.InternalInvoker   = new UnhandledActionInvoker(this);
 }
コード例 #4
0
ファイル: DispatchRuntime.cs プロジェクト: dox0/DotNet471RS3
        DispatchRuntime(SharedRuntimeState shared)
        {
            this.shared = shared;

            this.operations = new OperationCollection(this);

            this.inputSessionShutdownHandlers = this.NewBehaviorCollection <IInputSessionShutdown>();
            this.messageInspectors            = this.NewBehaviorCollection <IDispatchMessageInspector>();
            this.instanceContextInitializers  = this.NewBehaviorCollection <IInstanceContextInitializer>();
            this.synchronizationContext       = ThreadBehavior.GetCurrentSynchronizationContext();

            this.automaticInputSessionShutdown = true;
            this.principalPermissionMode       = ServiceAuthorizationBehavior.DefaultPrincipalPermissionMode;

            this.securityAuditLogLocation        = ServiceSecurityAuditBehavior.defaultAuditLogLocation;
            this.suppressAuditFailure            = ServiceSecurityAuditBehavior.defaultSuppressAuditFailure;
            this.serviceAuthorizationAuditLevel  = ServiceSecurityAuditBehavior.defaultServiceAuthorizationAuditLevel;
            this.messageAuthenticationAuditLevel = ServiceSecurityAuditBehavior.defaultMessageAuthenticationAuditLevel;

            this.unhandled = new DispatchOperation(this, "*", MessageHeaders.WildcardAction, MessageHeaders.WildcardAction);
            this.unhandled.InternalFormatter = MessageOperationFormatter.Instance;
            this.unhandled.InternalInvoker   = new UnhandledActionInvoker(this);
        }