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))); }
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); }
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(); }
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); }
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); }
string INamingConvention <NamingConventionSpy> .ComputeApplicationName(IApplicationBinding <NamingConventionSpy> application) { throw new NotSupportedException(); }
internal ReceivePortCollection(IApplicationBinding <TNamingConvention> applicationBinding) { _applicationBinding = applicationBinding; }
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(); }
internal VisitorPipeline(IApplicationBinding <TNamingConvention> applicationBinding) { ApplicationBinding = applicationBinding ?? throw new ArgumentNullException(nameof(applicationBinding)); Stage = new PreprocessingStage <TNamingConvention>(this); }
public string ComputeApplicationNameSpy(IApplicationBinding <NamingConventionDouble> application) { return(ComputeApplicationName(application)); }
string INamingConvention <NamingConventionDouble> .ComputeApplicationName(IApplicationBinding <NamingConventionDouble> application) { throw new NotImplementedException(); }
protected string ComputeApplicationName(IApplicationBinding <TNamingConvention> application) { return(ApplicationName.IsNullOrEmpty() ? application.GetType().Name : ApplicationName); }
public OrchestrationBindingCollection(IApplicationBinding <TNamingConvention> applicationBinding) { _applicationBinding = applicationBinding; }
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); }
public void VisitApplicationBinding <TNamingConvention>(IApplicationBinding <TNamingConvention> applicationBinding) where TNamingConvention : class { }