public HelloMiddle(RequestDelegate next, IGetName getName, string content, string contentType) { _next = next; _getName = getName; _content = content; _contentType = contentType; }
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()); } }
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; }
public PrintNames(IGetName getName) { _getName = getName; }
public HelloNamePlugin(IGetName getName) { _getName = getName; }
public TestMiddleware(RequestDelegate next, IGetName getName) { _getName = getName; _next = next; }