Beispiel #1
0
 public HelloMiddle(RequestDelegate next, IGetName getName, string content, string contentType)
 {
     _next        = next;
     _getName     = getName;
     _content     = content;
     _contentType = contentType;
 }
Beispiel #2
0
 void Replace(ref string text, string toReplace, IGetName control)
 {
     //if contains && control != null -> replace string with object name
     if (text.Contains(toReplace) && control != null)
     {
         text = text.Replace(toReplace, control.GetObjectName());
     }
 }
Beispiel #3
0
        public GetNameResponse AssignCustomerName(string name, FunctionType type)
        {
            GetNameResponse response = new GetNameResponse();

            IGetName getName = GetNameRuleFactory.Create(type);

            response = getName.GetName(name);

            return(response);
        }
 public MenuComponent(IGetName getName)
 {
     this.getName = getName;
 }
Beispiel #5
0
 public PrintNames(IGetName getName)
 {
     _getName = getName;
 }
Beispiel #6
0
 public HelloNamePlugin(IGetName getName)
 {
     _getName = getName;
 }
 public TestMiddleware(RequestDelegate next, IGetName getName)
 {
     _getName = getName;
     _next    = next;
 }