コード例 #1
0
        public void VisitApplicationBinding <TNamingConvention>(IApplicationBinding <TNamingConvention> applicationBinding)
            where TNamingConvention : class
        {
            var name = ((ISupportNamingConvention)applicationBinding).Name;

            _application = BizTalkServerGroup.Applications[name];
        }
 void IApplicationBindingVisitor.VisitApplicationBinding <TNamingConvention>(IApplicationBinding <TNamingConvention> applicationBinding)
     where TNamingConvention : class
 {
     _mainApplicationBinding = applicationBinding ?? throw new ArgumentNullException(nameof(applicationBinding));
     // ensure application bindings are settled for target environment before visit
     ((IVisitable <IApplicationBindingVisitor>)applicationBinding).Accept(new EnvironmentOverrideApplicator());
     VisitApplicationBinding(applicationBinding);
 }
 internal static string ComputeApplicationName <TNamingConvention>(IApplicationBinding <TNamingConvention> applicationBinding)
     where TNamingConvention : class
 {
     return(ComputeName(
                applicationBinding,
                "Application",
                convention => convention.ComputeApplicationName(applicationBinding)));
 }
コード例 #4
0
 public void VisitApplicationBinding <TNamingConvention>(IApplicationBinding <TNamingConvention> applicationBinding)
     where TNamingConvention : class
 {
     // ensure application bindings are settled for target environment before visit
     ((IVisitable <IApplicationBindingVisitor>)applicationBinding).Accept(ApplicationBindingEnvironmentSettlerVisitor.Create());
     ApplicationName = ((ISupportNamingConvention)applicationBinding).Name;
     BindingInfo     = CreateBindingInfo(applicationBinding);
 }
コード例 #5
0
 public void VisitApplicationBinding <TNamingConvention>(IApplicationBinding <TNamingConvention> applicationBinding) where TNamingConvention : class
 {
     if (applicationBinding == null)
     {
         throw new ArgumentNullException(nameof(applicationBinding));
     }
     ((ISupportEnvironmentOverride)applicationBinding).ApplyEnvironmentOverrides(Environment);
 }
 public void VisitApplicationBinding <TNamingConvention>(IApplicationBinding <TNamingConvention> applicationBinding)
     where TNamingConvention : class
 {
     // ensure application bindings are settled for target environment before visit
     ((IVisitable <IApplicationBindingVisitor>)applicationBinding).Accept(ApplicationBindingEnvironmentSettlerVisitor.Create());
     _applicationBinding = applicationBinding;
     _decoratedVisitor.VisitApplicationBinding(applicationBinding);
 }
 protected string ComputeApplicationName(IApplicationBinding <TNamingConvention> application)
 {
     if (application == null)
     {
         throw new ArgumentNullException(nameof(application));
     }
     return(ApplicationName.IsNullOrEmpty() ? application.GetType().Name : ApplicationName);
 }
 public void VisitApplicationBinding <TNamingConvention>(IApplicationBinding <TNamingConvention> applicationBinding) where TNamingConvention : class
 {
     if (applicationBinding == null)
     {
         throw new ArgumentNullException(nameof(applicationBinding));
     }
     ((ISupportValidation)applicationBinding).Validate();
 }
コード例 #9
0
        protected virtual BindingInfo CreateBindingInfo <TNamingConvention>(IApplicationBinding <TNamingConvention> applicationBinding)
            where TNamingConvention : class
        {
            var bi = new BindingInfo();

            bi.BindingParameters = new(new(bi.Version)) {
                BindingActions  = BindingParameters.BindingActionTypes.Bind,
                BindingItems    = BindingParameters.BindingItemTypes.All,
                BindingScope    = BindingParameters.BindingScopeType.Application,
                BindingSetState = BindingParameters.BindingSetStateType.UseServiceState
            };
            bi.Description         = applicationBinding.Description;
            bi.ModuleRefCollection = new() {
                new($"[Application:{ApplicationName}]", string.Empty, string.Empty, string.Empty)
            };
            bi.Timestamp = applicationBinding.Timestamp;
            return(bi);
        }
コード例 #10
0
        protected virtual BindingInfo CreateBindingInfo <TNamingConvention>(IApplicationBinding <TNamingConvention> applicationBinding)
            where TNamingConvention : class
        {
            ((ISupportValidation)applicationBinding).Validate();

            var bi = new BindingInfo();

            bi.BindingParameters = new BindingParameters(new Version(bi.Version))
            {
                BindingActions  = BindingParameters.BindingActionTypes.Bind,
                BindingItems    = BindingParameters.BindingItemTypes.All,
                BindingScope    = BindingParameters.BindingScopeType.Application,
                BindingSetState = BindingParameters.BindingSetStateType.UseServiceState
            };
            bi.Description         = applicationBinding.Description;
            bi.ModuleRefCollection = new ModuleRefCollection {
                new ModuleRef(string.Format("[Application:{0}]", ApplicationName), string.Empty, string.Empty, string.Empty)
                // TODO ref schemas, transforms, and other artifacts
            };
            bi.Timestamp = applicationBinding.Timestamp;
            return(bi);
        }
コード例 #11
0
 string INamingConvention <NamingConventionSpy> .ComputeApplicationName(IApplicationBinding <NamingConventionSpy> application)
 {
     throw new NotSupportedException();
 }
コード例 #12
0
 internal ReceivePortCollection(IApplicationBinding <TNamingConvention> applicationBinding)
 {
     _applicationBinding = applicationBinding;
 }
コード例 #13
0
 protected internal override void VisitApplicationBinding <TNamingConvention>(IApplicationBinding <TNamingConvention> applicationBinding)
     where TNamingConvention : class
 {
     ApplicationName = applicationBinding.ResolveName();
     BindingInfo     = CreateBindingInfo(applicationBinding);
 }
 protected internal abstract void VisitApplicationBinding <TNamingConvention>(IApplicationBinding <TNamingConvention> applicationBinding) where TNamingConvention : class;
 string INamingConvention <NamingConvention <TParty, TSubject> > .ComputeApplicationName(IApplicationBinding <NamingConvention <TParty, TSubject> > application)
 {
     return(base.ComputeApplicationName(application));
 }
 public void VisitApplicationBinding <TNamingConvention>(IApplicationBinding <TNamingConvention> applicationBinding) where TNamingConvention : class
 {
     ((ISupportEnvironmentOverride)applicationBinding).ApplyEnvironmentOverrides(Environment);
     ((ISupportValidation)applicationBinding).Validate();
 }
コード例 #17
0
 internal VisitorPipeline(IApplicationBinding <TNamingConvention> applicationBinding)
 {
     ApplicationBinding = applicationBinding ?? throw new ArgumentNullException(nameof(applicationBinding));
     Stage = new PreprocessingStage <TNamingConvention>(this);
 }
コード例 #18
0
 public string ComputeApplicationNameSpy(IApplicationBinding <NamingConventionDouble> application)
 {
     return(ComputeApplicationName(application));
 }
コード例 #19
0
 string INamingConvention <NamingConventionDouble> .ComputeApplicationName(IApplicationBinding <NamingConventionDouble> application)
 {
     throw new NotImplementedException();
 }
コード例 #20
0
 protected string ComputeApplicationName(IApplicationBinding <TNamingConvention> application)
 {
     return(ApplicationName.IsNullOrEmpty() ? application.GetType().Name : ApplicationName);
 }
 public OrchestrationBindingCollection(IApplicationBinding <TNamingConvention> applicationBinding)
 {
     _applicationBinding = applicationBinding;
 }
コード例 #22
0
 string INamingConvention <NamingConvention> .ComputeApplicationName(IApplicationBinding <NamingConvention> application)
 {
     return(base.ComputeApplicationName(application));
 }
 void IApplicationBindingVisitor.VisitApplicationBinding <TNamingConvention>(IApplicationBinding <TNamingConvention> applicationBinding)
     where TNamingConvention : class
 {
     ApplicationName = applicationBinding.ResolveName();
     BindingInfo     = CreateBindingInfo(applicationBinding);
 }
コード例 #24
0
 public void VisitApplicationBinding <TNamingConvention>(IApplicationBinding <TNamingConvention> applicationBinding)
     where TNamingConvention : class
 {
 }