public static IStatefulServiceHostDelegateReplicaTemplate UseDelegateInvoker(
            this IStatefulServiceHostDelegateReplicaTemplate @this,
            Func <Delegate, IServiceProvider, IStatefulServiceHostDelegateInvoker> factoryFunc)
        {
            @this.ConfigureObject(
                configurator => configurator.UseDelegateInvoker(factoryFunc));

            return(@this);
        }
        public static IStatefulServiceHostDelegateReplicaTemplate UseEvent(
            this IStatefulServiceHostDelegateReplicaTemplate @this,
            StatefulServiceLifecycleEvent @event)
        {
            @this.ConfigureObject(
                configurator => configurator.UseEvent(@event));

            return(@this);
        }