public Responsor AddService( string ServiceName, Action Service) { var Response = new ResponsorData() { RequestName = ServiceName, Responsor = new Responsor(null, Service) }; ArrayExtentions.BinaryInsert(ref Childs, Response); return(Response.Responsor); }
public Responsor <DataType> AddService <DataType>( string ServiceName, Func <DataType> Way, Action <DataType> Service) { var Response = new ResponsorData() { RequestName = ServiceName, Responsor = new Responsor( () => Responsor <DataType> .Data = Way(), () => Service(Responsor <DataType> .Data)) }; ArrayExtentions.BinaryInsert(ref Childs, Response); return(new Responsor <DataType>(Response.Responsor)); }