Ejemplo n.º 1
0
 public CreateStandardRequestMiddleware(
     OperationDelegate next,
     IOperationSerializer serializer)
 {
     _next       = next ?? throw new ArgumentNullException(nameof(next));
     _serializer = serializer ?? throw new ArgumentNullException(nameof(serializer));
 }
Ejemplo n.º 2
0
 public SqlStoreSender(
     IIdentityGenerator identityGenerator,
     IRepository <PerformedOperationFinalProcessing> repository,
     IOperationSerializer <TOperation> serializer)
 {
     _identityGenerator = identityGenerator;
     _repository        = repository;
     _serializer        = serializer;
     _targetFlow        = MessageFlowBase <TFlow> .Instance;
 }
Ejemplo n.º 3
0
        public bool AddStep(string type, object opDescription)
        {
            IOperationSerializer ser = null;

            ser = CreateSerializer(type);

            _steps.Add(ser.Serialize(opDescription));

            return(true);
        }
Ejemplo n.º 4
0
 public OpLogManager(IFile olFile, IOperationSerializer serializer)
 {
     this.olFile     = olFile;
     this.serializer = serializer;
 }
Ejemplo n.º 5
0
        public static IOperationSerializer CreateSerializer(string type)
        {
            IOperationSerializer ser = null;

            if (type == OperationConstants.PIVOT)
            {
                ser = new PivotSerializer();
            }
            else if (type == OperationConstants.PIVOT_CW)
            {
                ser = new PivotCWSerializer();
            }
            else if (type == OperationConstants.PIVOT_CCW)
            {
                ser = new PivotCCWSerializer();
            }
            else if (type == OperationConstants.PER_PART)
            {
                ser = new CalculatePerPartSerializer();
            }
            else if (type == OperationConstants.CHANGE_VALUE_ORDER)
            {
                ser = new ChangeValueOrderSerializer();
            }
            else if (type == OperationConstants.DELETE_VALUE)
            {
                ser = new DeleteValueSerializer();
            }
            else if (type == OperationConstants.DELETE_VARIABLE)
            {
                ser = new DeleteVariableSerializer();
            }
            else if (type == OperationConstants.SORT_TIME)
            {
                ser = new SortTimeVariableSerializer();
            }
            else if (type == OperationConstants.SPLIT_TIME)
            {
                ser = new SplitTimevariableSerializer();
            }
            else if (type == OperationConstants.SUM)
            {
                ser = new SumSerializer();
            }
            else if (type == OperationConstants.CHANGE_DECIMALS)
            {
                ser = new ChangeDecimalsSerializer();
            }
            else if (type == OperationConstants.CHANGE_TEXT)
            {
                ser = new ChangeTextSerializer();
            }
            else if (type == OperationConstants.PIVOT_TIME_TO_HEADING)
            {
                ser = new PivotTimeToHeadingSerializer();
            }
            else if (type == OperationConstants.CHANGE_TEXT_CODE_PRESENTATION)
            {
                ser = new ChangeTextCodePresentationSerializer();
            }

            return(ser);
        }